x86: add a new p2m type class - P2M_DISCARD_WRITE_TYPES
authorYu Zhang <yu.c.zhang@linux.intel.com>
Wed, 7 Jan 2015 10:25:55 +0000 (11:25 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 7 Jan 2015 10:25:55 +0000 (11:25 +0100)
commit1c02cce0edfa53190b58fa4a1451f47be4d0f1c4
tree59f0caffb68e6461afd1afc665a8e5581458cbb4
parentf915632c909856cdd58e7b8849a0bc93838fa769
x86: add a new p2m type class - P2M_DISCARD_WRITE_TYPES

Currently, the P2M_RO_TYPES bears 2 meanings: one is
"_PAGE_RW bit is clear in their PTEs", and another is
to discard the write operations on these pages. This
patch adds a p2m type class, P2M_DISCARD_WRITE_TYPES,
to bear the second meaning, so we can use this type
class instead of the P2M_RO_TYPES, to decide if a write
operation is to be ignored.

Signed-off-by: Yu Zhang <yu.c.zhang@linux.intel.com>
Reviewed-by: Tim Deegan <tim@xen.org>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/mm/shadow/multi.c
xen/include/asm-x86/p2m.h